add_compile_definitions(
	FP_SUPPORT_CPLUSPLUS11_MATH_FUNCS
	FP_USE_THREAD_SAFE_EVAL
)

if( ${DEBUG_BUILD} )
	add_compile_definitions(
		FUNCTIONPARSER_SUPPORT_DEBUGGING
	)
endif()

add_library( fparser SHARED
	fparser.cc
	fpoptimizer.cc
)

# suppressing errors for external library build
target_compile_options( fparser
	PRIVATE -w
#	PRIVATE -Wimplicit-fallthrough=0
#	PRIVATE -Wno-misleading-indentation
)

target_include_directories( fparser PUBLIC
	${CMAKE_CURRENT_SOURCE_DIR}
)